#include <iostream>

int main()
{
	int n = 100000;
	for (int i = 0; i < n; i++) std::cout << "ab";
	std::cout << '\n';
	for (int i = 0; i < n; i++) std::cout << "ba";
	std::cout << '\n';
}
